﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;
using WhereAmiMvc.Dbs;

namespace WhereAmiMvc.Entities
{
    /// <summary>
    /// 每日子动态
    /// </summary>
    public class DailyLogs
    {
        [Key]
        [DisplayName("日位置编号")]
        public string idDailyLogs { get; set; }

        [ForeignKey("IdEmployee")]
        [DisplayName("用户编号")]
        public string IdEmployee { get; set; }

        [DisplayName("具体时间")]
        public DateTime DTdetails { get; set; }

        [DisplayName("地点")]
        public string location { get; set; }

        [DisplayName("符号")]
        public string Fh { get; set; }

        [DisplayName("说明")]
        public string Discription { get; set; }

        [DisplayName("用户信息")]
        public virtual EmployeesOfLocation employee { get; set; }
    }

    public class DailyLogsBll : DBCommon<DailyLogs>
    {
        public override string TableName
        {
            get { return "DailyLogs"; }
        }

        public override string PrimaryKey
        {
            get { return "idDailyLogs"; }
        }

        public override string ConnKey
        {
            get { return "default"; }
        }

        public override string ParaF
        {
            get { return "@"; }
        }
    }
}